﻿<%@ Page Title="" Language="C#" MasterPageFile="~/BasicBase/BasicBase.master" AutoEventWireup="true"
    CodeFile="DrillingDepartment.aspx.cs" Inherits="BasicBase_Drilling_Default" StylesheetTheme="Content" %>

<%@ Register Src="../../UserContral/ListPageContral.ascx" TagName="ListPageContral"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div>
        <table cellspacing="0" cellpadding="0" width="100%" class="intable">
            <caption>
                <asp:Label ID="ActionTitle" runat="server" Text="参加单位"></asp:Label></caption>
            <tr>
                <td style="width: 80px;">
                    单位名称：
                </td>
                <td>
                    <asp:TextBox ID="Department" runat="server" Width="409px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="Department"
                        ErrorMessage="*" ValidationGroup="1"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    人员数量：
                </td>
                <td>
                    <asp:TextBox ID="PeopleCount" runat="server" Width="64px"></asp:TextBox>
                    <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="PeopleCount"
                        Display="Dynamic" ErrorMessage="*" MaximumValue="999999" MinimumValue="0" Type="Integer"
                        ValidationGroup="1"></asp:RangeValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="PeopleCount"
                        ErrorMessage="*" ValidationGroup="1"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    车辆数量：
                </td>
                <td>
                    <asp:TextBox ID="VehicleCount" runat="server" Width="64px"></asp:TextBox>
                    <asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="VehicleCount"
                        Display="Dynamic" ErrorMessage="*" MaximumValue="999999" MinimumValue="0" Type="Integer"
                        ValidationGroup="1"></asp:RangeValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="VehicleCount"
                        ErrorMessage="*" ValidationGroup="1"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:CheckBox ID="IsActive" runat="server" Text="消防部队" />
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:Button ID="Button1" runat="server" Text="添加" OnClick="Button1_Click" ValidationGroup="1" />
                    <input id="ButtonCancel" class="button_default" onclick="window.location='DrillingNoteNew.aspx?id=<%= Request.QueryString["id"] %>';"
                        type="button" value="取消" />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <div class="prompt">
                        <asp:Label ID="Prompt" runat="server" />
                    </div>
                </td>
            </tr>
        </table>
        <asp:GridView ID="UserGrid" runat="server" AutoGenerateColumns="False" Caption="<span>消防部队参加列表</span>"
            DataKeyNames="Id" OnRowDataBound="UserGrid_RowDataBound" OnRowCommand="UserGrid_RowCommand">
            <Columns>
                <asp:TemplateField>
                    <HeaderStyle HorizontalAlign="Left" Width="5%" />
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblID"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Department" HeaderText="单位名称" />
                <asp:BoundField DataField="PeopleCount" HeaderText="人员数量" />
                <asp:BoundField DataField="VehicleCount" HeaderText="车辆数量" />
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:ImageButton runat="server" ID="Del" CommandName="Del" CommandArgument='<%# Eval("id") %>'
                            ImageUrl="~/Images/delete.gif" OnClientClick="return confirm('是否真的删除?')"></asp:ImageButton>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Right" />
                </asp:TemplateField>
            </Columns>
            <HeaderStyle HorizontalAlign="Left" />
        </asp:GridView>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Caption="<span>地方单位参加列表</span>"
            DataKeyNames="Id" OnRowDataBound="UserGrid_RowDataBound" OnRowCommand="UserGrid_RowCommand">
            <Columns>
                <asp:TemplateField>
                    <HeaderStyle HorizontalAlign="Left" Width="5%" />
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblID"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Department" HeaderText="单位名称" />
                <asp:BoundField DataField="PeopleCount" HeaderText="人员数量" />
                <asp:BoundField DataField="VehicleCount" HeaderText="车辆数量" />
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:ImageButton runat="server" ID="Del" CommandName="Del" CommandArgument='<%# Eval("id") %>'
                            ImageUrl="~/Images/delete.gif" OnClientClick="return confirm('是否真的删除?')"></asp:ImageButton>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Right" />
                </asp:TemplateField>
            </Columns>
            <HeaderStyle HorizontalAlign="Left" />
        </asp:GridView>
    </div>
</asp:Content>
